home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 18 / CU Amiga Magazine's Super CD-ROM 18 (1997)(EMAP Images)(GB)[!][issue 1998-01].iso / CUCD / Programming / AmigaE / Src / OOmodules / oodoc / scripts / getADoc.sh < prev    next >
Encoding:
Text File  |  1996-06-07  |  1020 b   |  35 lines

  1. # Get autodoc information from E sources.
  2. # Takes all *.e (recursively) from the current location.
  3. #
  4. # Second draft July 7 1996 Gregor Goldbach
  5. #
  6. #
  7. # Usage: makedoc destination_directory
  8. #
  9.  
  10.  
  11. if $# = 0; abort; endif
  12.  
  13. set currentdir $_cwd
  14. set adocpath "Work:Entwicklung/Werkzeuge/Autodoc/"
  15. set tempdir $1
  16.  
  17.  
  18. # note that the autodoc options are case sensitive
  19. alias getADoc "%source%dest $adocpath\"\"Autodoc -t8 -I -C $source >$tempdir/$dest "
  20.  
  21. md $tempdir
  22.  
  23. # take all E sources recursively and extract autodocs.
  24. #
  25. # take this line to get all file names printed:
  26. # foreach i ( .../*.e ) "strhead x \".\" $i; basename n $x; echo -n \"Get docs from \"$x; getADoc $i $n.doc; if @filelen( $tempdir/$n.doc ) = 20; del $tempdir/$n.doc; echo \" (purged)\"; else; echo \" (exists)\"; endif"
  27.  
  28. foreach i ( .../*.e ) "strhead x \".\" $i; basename n $x; getADoc $i $n.doc; if @filelen( $tempdir/$n.doc ) = 20; del $tempdir/$n.doc; else; echo  \"Get docs from \"$x; endif"
  29.  
  30. cd $currentdir
  31.  
  32. unset currentdir
  33. unset adocpath
  34. unset tempdir
  35.